package com.it.schoolbookshop_back.entities.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private Integer id;
    private String username;
    private String password;
    private String role = "student";
    private String status;
    private String student_id;
    private String real_name;
    private String department;
    private String email;
    private String phone;
    private String wechat;
    private byte[] avatar;
    private String avatar_type;
    private String bio;
    private Boolean email_verified = false;
    private Boolean phone_verified = false;
    private LocalDateTime created_at;
    private LocalDateTime updated_at;
    private Integer bookCount;
    private Integer soldCount;
    private Integer boughtCount;
    private Integer favoriteCount;
}